<?php

/**
 * page actions.
 *
 * @package    khas
 * @subpackage page
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 3335 2007-01-23 16:19:56Z fabien $
 */
class scheduleActions extends sfActions
{
    public function preExecute()
    {
        ProjectConfiguration::getApplicationConfiguration('front', 'prod', false)->loadHelpers('Url');
    }
    
    public function executeShow(sfWebRequest $request)
    {

        
        $breadcrumbs = array();
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('team/index').'">Багууд</a>';
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('team/show?name='.$team).'">'.$team.'</a>';
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('player/show?nick='.$player->getNick()).'">'.$player.'</a>';
        $this->getResponse()->setSlot('breadcrumbs', $breadcrumbs);
    }
    
    public function executeIndex(sfWebRequest $request)
    {
        $this->seasonId = $request->getParameter('seasonId', 1);

        $breadcrumbs = array();
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('schedule/index?seasonId='.$this->seasonId).'">Хувиар, дүн</a>';
        $this->getResponse()->setSlot('breadcrumbs', $breadcrumbs);
    }


}